package de.gameduell.framework.facebook {

	import flash.geom.Point;

	public class PageSettings {
		private var _position:Point;
		private var _isContent:Boolean;
		private var _autoShow:Boolean;
		private var _offset:int;

		public function PageSettings(pageXMLNode:XML){
			var posX:Number = Number(pageXMLNode.@posX);
			var posY:Number = Number(pageXMLNode.@posY);
			_position  = new Point(posX, posY);
			_isContent = String(pageXMLNode.@isContent) == "true";
			_autoShow  = String(pageXMLNode.@autoShow) == "true";
			_offset    = int(pageXMLNode.@offset);
		}

		public function get position():Point {
			return _position;
		}
		
		public function get isContent():Boolean {
			return _isContent;
		}
		
		public function get autoShow():Boolean {
			return _autoShow;
		}
		
		public function get offset():int {
			return _offset;
		}
	}
}